home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950329-19950528
/
000236_news@columbia.edu_Wed Apr 26 14:06:38 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA18059
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 26 Apr 1995 10:06:54 -0400
Received: by apakabar.cc.columbia.edu id AA09767
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 26 Apr 1995 10:06:52 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: kermit script suspends with escape
Date: 26 Apr 1995 14:06:38 GMT
Organization: Columbia University
Lines: 34
Message-Id: <3nlk1e$9gl@apakabar.cc.columbia.edu>
References: <EGORMAN.95Apr24171009@dev27>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <EGORMAN.95Apr24171009@dev27>,
Eugene Gorman <egorman@dev27> wrote:
>I have created a dialup kermit script that will suspend on the
>appearance of an escape (ie ^[). The site I connect to sends out and
>escape right after the CONNECT message, and my kermit script stops.
>If I hit return at this point, the script will continue and work just
>fine. I am trying to run this without human intervention. Is there a
>way to tell the kermit script to ignore escapes? If I run this by
>hand, I am not suspended.
>
This is a variation on a frequently asked question. The question comes
in so many forms, I don't really know how to rephrase it in a generic way,
but the answer is always the same:
DON'T USE THE CONNECT COMMAND IN A SCRIPT PROGRAM UNLESS YOU REALLY
WANT TO START THE TERMINAL EMULATOR.
Please read the documentation. The CONNECT command "connects" your keyboard
and screen to the remote host. The CONNECT command stays active until you
escape back to the command processor. Conversely, the command processor
is not active during CONNECT mode, and thus your script does not execute
while CONNECT mode is active.
In a script program, you replace the CONNECT command with INPUT, OUTPUT,
and IF FAIL / IF SUCCESS commands to do under program control what you
would have done by hand / by eye in CONNECT mode.
In this case, your Kermit script stops because you have entered CONNECT
mode, the host sends an Escape, and the terminal emulator is waiting for
the rest of the escape sequence. Cure: don't do that. Use INPUT. Read
the book. Look at the numerous examples of how to construct login
scripts.
- Frank